<div class="contest-list-view">

	<div class="top clearfix">

		<div class="title float-left">
			<h2>
				<a href="<?php echo Yii::app()->createUrl('contest/view',array('id'=>$model->id)); ?>">
					<?php echo CHtml::encode($model->name); ?>
				</a>
			</h2>
		</div>

		<div class="submit-entry float-right">
			<?php $this->renderPartial('/contest/_submitButton',array('model'=>$model,'buttonCssClass'=>'')); ?>
		</div>

		<div class="view-contest float-right">
			<?php echo CHtml::link(Yii::t('frontend','VIEW CONTEST'),array('contest/view','id'=>$model->id),array('class'=>'btn')); ?>
		</div>

	</div>

	<p class="description">
		<?php echo CHtml::encode($model->description); ?>
	</p>

	<div class="entries clearfix">
		<?php $this->widget('BootstrapListView', array(
			'dataProvider'=>$entries,
			'itemView'=>'/entry/_thumb',
			'template'=>"{items}",
			'emptyText'=>Yii::t('frontend','No entries have been submitted for this competition.'),
		)); ?>
	</div>

</div>